distribution output.def (410B)
1 \tikzset{ 2 activation/.style={fill=Dark2-C}, 3 mean activation/.style={fill=Dark2-B}, 4 } 5 6 \NewDocumentCommand\drawDistribution{m m m m}{ 7 \foreach \i/\value in {#4}{ 8 \pgfmathsetmacro\east{1.65+\i/10*3.25} 9 \pgfmathsetmacro\west{\east+3.25/10-0.02} 10 \pgfmathsetmacro\north{#3+\value/2+0.02} 11 \path[#1] (\east, #3) rectangle (\west, \north); 12 } 13 \node[anchor=east] (r1) at ($(1.5, 0.165) + (0, #3)$) {#2}; 14 }